Webcom

object Webcom

Provides some high-level static methods and properties to handle the Webcom SDK for Android.

Types

Link copied to clipboard

Lists all log levels available for the Webcom SDK.

Properties

Link copied to clipboard

Represents the device identifier to be used to receive mobile push notifications from Webcom on the current device.

Link copied to clipboard

Sets the level of the logs produced by the Webcom SDK.

Functions

Link copied to clipboard

Install a listener that will receive each log emitted by the Webcom SDK.

Link copied to clipboard

Retrieves the Mobile Country Code (MCC) associated to the SIM card activated on the phone.

Link copied to clipboard

Retrieves the Mobile Network Code (MNC) associated to the SIM card activated on the phone.

Link copied to clipboard
fun onReady(runnable: Runnable)

Registers the runnable callback to be called as soon as the Webcom SDK has completed its initialization.

Link copied to clipboard

Uninstall a previously installed listener, so that it no longer receives the logs emitted by the Webcom SDK.

Link copied to clipboard

Blocks the calling thread until the Webcom SDK has completed its initialization.

Link copied to clipboard
fun whenSdkIsInitialized(block: () -> Unit)

Runs a given code block once the Webcom SDK is properly initialized.